package com.xiangxiangjd.bean.result;

import java.io.Serializable;
import java.util.List;

/**
 * @author 肖守凯
 * @packge com.xbxkj.commen.bean.result
 * @data 2019-08-19 16:30
 * @project shopplusxbx
 */
public class TreeModel implements Serializable {
    private String id;
    private String pId;
  private   String name;
  private   String value;
  private   boolean open =true;
  private  List<TreeModel>  children;

    public List<TreeModel> getChildren() {
        return children;
    }

    public void setChildren(List<TreeModel> children) {
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    @Override
    public String toString() {
        return "TreeModel{" +
                "id='" + id + '\'' +
                ", pId='" + pId + '\'' +
                ", name='" + name + '\'' +
                ", value='" + value + '\'' +
                ", spread=" + open  +
                '}';
    }
}
